/**
 * Play：：房间辅助工具
 */
/***************************************  各类清除  *********************************************************************/

function delete_all() {
    delete_all_bipai();
    delete_all_bg();
    delete_all_btn();
}
function delete_all_bipai(){
    for( var y = 0 ; y < All_B0_Layer.length ; y++ ){PL_Room_Play.removeChild(All_B0_Layer[y] );}//清除所有1比框
    for( var y = 0 ; y < All_B1_Layer.length ; y++ ){PL_Room_Play.removeChild(All_B1_Layer[y] );}//清除所有1比框
    for( var y = 0 ; y < All_B2_Layer.length ; y++ ){PL_Room_Play.removeChild(All_B2_Layer[y] );}//清除所有2比框
    for( var y = 0 ; y < All_B3_Layer.length ; y++ ){PL_Room_Play.removeChild(All_B3_Layer[y] );}//清除所有3比框
}
function delete_all_bg(){
    if( PL_Room_Play.MOPAI_YANGAI != null ){ PL_Room_Play.removeChild(PL_Room_Play.MOPAI_YANGAI) ;}
    if( PL_Room_Play.MOPAI_BG2 != null ){ PL_Room_Play.removeChild(PL_Room_Play.MOPAI_BG2) ;}
    if( PL_Room_Play.MOPAI_BG != null ) { PL_Room_Play.removeChild(PL_Room_Play.MOPAI_BG) ; }
}
function delete_all_btn(){
    GAME_NOW_BTN_C = 0;
    if( PL_Room_Play.BTN_HU != null ){PL_Room_Play.removeChild( PL_Room_Play.BTN_HU );PL_Room_Play.BTN_HU = null;}
    if( PL_Room_Play.BTN_PENG != null ){PL_Room_Play.removeChild( PL_Room_Play.BTN_PENG );PL_Room_Play.BTN_PENG = null;}
    if( PL_Room_Play.BTN_CHI != null ){PL_Room_Play.removeChild( PL_Room_Play.BTN_CHI );PL_Room_Play.BTN_CHI = null;}
    if( PL_Room_Play.BTN_CLOSE != null ){PL_Room_Play.removeChild( PL_Room_Play.BTN_CLOSE );PL_Room_Play.BTN_CLOSE = null;}
}
/***************************************  各类清除  ********************************************************************/